
****** Replication Appendix_A2 for "Explaining Foreign Support for China's Global Economic Leadership," International Organization 
                     *********** -------By J. Lawrence BROZ   Zhiwen ZHANG    Gaoyang WANG ---------***********

					 
					 
					 

******** Change this directory to the correct path on your computer:

  use "D:\stata11\ado\personal\broz_zhang_wang_bri_dataset.dta", clear


  

  drop attendance_4_category 
  
  
  
 ***----------------------------Taking log on GDP PER CAPITA---------------------------------***
 gen lppcgdpsm_a=log(ppcgdpsm_a)
 
 
 
 
 ***-------------------------Clean up the data for LEADER IDEOLOGY---------------------------***
 
 replace dpi_ideology_n=. if dpi_ideology_n==-999
 
 
 
 
 
 ***---------------------------------Label Key Variables-------------------------------------***
 
 ***-------Dependent variables---------***
 la var attendance  "DV=ATTENDANCE"
 la var attendance_3_category  "DV=ORDERED ATTENDANCE"
 
  
 ***-------Pull variables----------***
 la var obor_nations "ONE BELT, ONE ROAD POSITION"
 la var ftas "FTA WITH CHINA"
 la var bits "BIT WITH CHINA"
 
 
 ***-------Push variables----------***
 la var fc_dummy_cumcount_bank_s1_9016 "FINANCIAL CRISES"
 la var ka_open_sd9016 "VARIABILITY OF CAPITAL ACCOUNT POLICY"
 la var mean_portfolio_vol "VOLATILITY OF PORTFOLIO OUTFLOWS"
 
 la var imf_dummy_unrest_index_sum_9017 "SOCIAL UNREST DURING IMF PROGRAMS"
 
 la var wto_cases_cumulcount9516 "WTO COMPLAINTS AGAINST THE U.S."
 
 la var imf_governance_deficit_usd_2015 "IMF GOVERNANCE DEFICIT"
 
 
 
 ***------Control variables----------***
 la var idp_cn_1316  "IDEAL POINT DISTANCE FROM CHINA"
 la var regime_type "REGIME TYPE"
 la var dpi_ideology_n "LEADER IDEOLOGY"
 la var africa "AFRICA DUMMY"
 
 la var rgdppcg_usd2016 "GDP GROWTH"
 la var pgdpsm_a "GDP"  
 la var lppcgdpsm_a "LOG GDPPC"
 
 la var physint_mean_9011 "CIRI HUMAN RIGHTS INDEX"
 
   
  
  
  
  
  
  
  ****-------------------------------------Replication Appendix_A2: CORRELATION MATRIX----------------------------------------------****
 
   cor attendance attendance_3_category obor_nations ftas bits fc_dummy_cumcount_bank_s1_9016 ka_open_sd9016 mean_portfolio_vol ///
       imf_dummy_unrest_index_sum_9017 wto_cases_cumulcount9516 imf_governance_deficit_usd_2015 ///
  
  
  
  				   
	logout, save(Appendix_A2) word replace dec(3): cor attendance attendance_3_category obor_nations ftas bits fc_dummy_cumcount_bank_s1_9016 ka_open_sd9016 mean_portfolio_vol ///
       imf_dummy_unrest_index_sum_9017 wto_cases_cumulcount9516 imf_governance_deficit_usd_2015 ///
	
  
  
  logout, save(Appendix_A2) excel replace dec(3): cor attendance attendance_3_category obor_nations ftas bits fc_dummy_cumcount_bank_s1_9016 ka_open_sd9016 mean_portfolio_vol ///
       imf_dummy_unrest_index_sum_9017 wto_cases_cumulcount9516 imf_governance_deficit_usd_2015 ///
  
  
  
  logout, save(Appendix_A2.txt)  replace dec(3): cor attendance attendance_3_category obor_nations ftas bits fc_dummy_cumcount_bank_s1_9016 ka_open_sd9016 mean_portfolio_vol ///
       imf_dummy_unrest_index_sum_9017 wto_cases_cumulcount9516 imf_governance_deficit_usd_2015 ///
  
  
  
  
  
  
  
  
  
  
  
  
  